<?php
  
  function service_title_validation($form) { 
  	//print "<pre>";print_r($form); print "</pre>"; 
    $stat = new set_static_variable(); 
	
	
	//Concerned Dept Validation
	//chk_concerned_dept($form['field_service_title_dept']);
    //Duplicate Title
	//check_title_duplication($form['title'], $form['type']['#value'], $form['field_service_title_dept'], 'field_service_title_dept', $stat->get_nid());
    $stat->set_nid(0);
		
    // Check bad character validation
     	
    chkbadchar($form['title']['#value'], $form['title']['#title'], 'title'); 
	
	// check char
	check_char($form['title']['#value'], $form['title']['#title']);
												
	// maximum length validation for Title and Description Field
    maxlength_validation($form['title']['#value'], 255, $form['title']['#title'], 'title');
	// minimum length charcter   
  	minilength_validation($form['title']['#value'], 5, $form['title']['#title'], 'title');
	
	  
}
